package www.wen.com.common.lib.data.entities



/**
 * @author WEN
 * @Description:
 * @date 2021/1/27 10:04
 */
enum class StateType {
    LOADING_DIALOG,LAYOUT_PLACEHOLDER
}

open class UiStateCustom<T>(
    val stateType: StateType = StateType.LOADING_DIALOG,
    val stateData: T? = null
)

enum class LoadingDialogStateType {
    SUCCESS, ERROR, LOADING, DISMISS
}

data class LoadingDialog<V>(
    val tip: V,
    val loadingDialogStateType: LoadingDialogStateType,
    val isShowDialogTip: Boolean = true,
    val isShowToastTip: Boolean = false,
    val action: (() -> Unit)? = null,
)

open class LoadingHelperUiState(
    val loadingHelpType: LoadingHelperType = LoadingHelperType.LOADING,
    val stateData: Any? = null
)

data class LoadingHelperData(
    val tip: String,
)

enum class LoadingHelperType {
    LOADING, ERROR, EMPTY,CONTENT
}



